import 'package:fish_redux/fish_redux.dart';

enum LoginAction {
  reloadLoggingInfo,
  refreshUI, 
  sendSMSCode,
  sendSMSCodeCowndown,
  login,
  resetInfo,
  showOrHideResetButton,
 }

class LoginActionCreator {

  static Action reloadLoggingInfo() {
    return const Action(LoginAction.reloadLoggingInfo);
  }

  static Action refresh() {
    return const Action(LoginAction.refreshUI);
  }

  static Action onLogin() {
    return const Action(LoginAction.login);
  }

  static Action onSendSmsCode() {
    return const Action(LoginAction.sendSMSCode);
  }

  static Action onSendSmsCowndown() {
    return const Action(LoginAction.sendSMSCodeCowndown);
  }

  static Action onClearTelphone() {
    return const Action(LoginAction.resetInfo);
  }

  static Action showOrHideResetButton() {
    return const Action(LoginAction.showOrHideResetButton);
  }

}
